﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Events
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void ListEvents()
        {
            var o = new NENAData.Events.List();
            //RadGrid1.MasterTableView = o.GetAll(true, NENAData.Transactions.TransactionList.Transactions.ConferenceRegina2011);
            //RadGrid1.DataSource = o.GetAll(true, NENAData.Transactions.TransactionList.Transactions.ConferenceRegina2011);
            bool boolMember = true;
            //Response.Write(Session["PaidMember"]);
            GridView1.DataSource = o.GetAll(boolMember, NENAData.Transactions.TransactionList.Transactions.ConferenceRegina2012);
            GridView1.DataBind();

            CheckBoxList1.DataSource = o.GetAll(boolMember, NENAData.Transactions.TransactionList.Transactions.ConferenceRegina2012);
            CheckBoxList1.DataTextField = "Description";
            CheckBoxList1.DataValueField = "EventId";
            CheckBoxList1.DataBind();
        }

    }
}